package com.kingmed.kmss.common.dto.base;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Getter;
import lombok.Setter;

import java.io.Serializable;

/**
 * <p>
 * 业务变更记录表对象
 * </p>
 *
 * @author wyl
 * @since 2023-04-11
 */
@Getter
@Setter
@ApiModel(description = "业务变更记录表对象")
public class ChangeLogDTO implements Serializable {

    public static final String LOG_TYPE1 = "1";
    public static final String LOG_TYPE2 = "2";

    private static final long serialVersionUID = 1L;

    @ApiModelProperty("变更记录表ID")
    private String recordId;

    @ApiModelProperty("日志类型（1=主表字段级，2=子表级）")
    private String logType;

    @ApiModelProperty("变更对象名称（主表用字段名，子表级名称可用表名或者表注释）")
    private String changeTitle;

    @ApiModelProperty("字段级变更前")
    private String changeBefore;

    @ApiModelProperty("字段级变更后")
    private String changeAfter;

    @ApiModelProperty("子表级变更前")
    private String jsonBefore;

    @ApiModelProperty("子表级变更后")
    private String jsonAfter;

    @ApiModelProperty("备注")
    private String remark;

}
